/*TODO: pois nämä korkeusmääreet ja javascriptillä lasketut pikselimääreet tilalle */
body, html {
    min-height: 100%;
}

.wrap, #pt, .content, .calendar, .days, .day {
    min-height: 100%;
}

/*TODO: kato tosta ylhäältä */

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 18px;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
}

table {
    width: 100%;
}

td, th, tr {
    vertical-align: top;
}

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

.wrap {

}

.disable-bootstrap * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.navbar {
    margin: 0;
}

.navbar-inner {
    border-radius: 0px;
    padding: 0;
    background: #222222;
    box-shadow: none;
}

.navbar .container {
    width: auto;
    max-width: inherit;
}

.left {
    float: left;
}

.right {
    float: right;
}

.sidebar {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    /*  box-shadow: -3px 0px 5px 3px hsla(0, 0%, 0%, 1);
      position: relative;
      z-index: 999;*/
}

.resources {
    margin-top: 101px;
}


.name {
    box-sizin: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    line-height: 33px;
    max-height: 33px;
    white-space: nowrap;
    border-top: 1px solid #c9c9c9;
    padding-left: 12px;
    margin-top: -1px;
    text-overflow: ellipsis;
    background: -webkit-linear-gradient(-90deg, hsl(0, 0%, 99%), hsl(0, 0%, 95%));
}

.name:last-child {
    line-height: 30px;
    border-bottom: 1px solid #c9c9c9;
}

.content {
    width: auto;
    float: left;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.calendar {
    white-space: nowrap;
}

.calendar .month,
.calendar .week,
.calendar .day,
.calendar .hour {
}

.calendar > div {
}

.calendar .header {
    padding: 6px;
}

.months {
    font-size: 32px;
    line-height: 36px;
    font-weight: bold;
}

.month {
    display: inline-block;
}

.calendar .month {
    border-right: 1px solid rgba(0, 0, 0, .2);
}

.weeks {
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
}

.week {
    font-size: 24px;
    display: block;
}

.calendar .week {
    float: left;
    color: hsl(0, 0%, 55%);
    font-weight: normal;
    border-right: 1px solid rgba(0, 0, 0, .2);
}

.days {
    font-size: 18px;
    line-height: 27px;
}

.day {
    display: inline-block;
    overflow: visible;
}

.calendar .day {
    color: hsl(0, 0%, 20%);
    font-weight: normal;
    border-right: 1px solid rgba(0, 0, 0, .3);
}

.day .header {
    display: block;
    padding: 0px 6px 4px 6px;
    margin-top: -4px;
}

.calendar .day.active {
    background: #fffe97;
}

.calendar .day.today {
    background: rgba(0, 50, 50, 0.05);
}

.hours {
    font-size: 10px;
    line-height: 18px;
    height: 18px;
    font-weight: bold;
}

.calendar .hour {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    text-align: center;
    position: relative;
    color: hsla(0, 0%, 35%, 1);
    font-weight: bold;
}

.calendar td {
    border-right: 1px solid rgba(0, 0, 0, .15);
}

.calendar .hour.active {
    background: #fffed1;
}

.calendar .day:last-child, .calendar td:last-child {
    border-right: none;
}

.data {
}

.data-row {
    min-height: 32px;
    border-top: 1px solid hsla(0, 0%, 0%, .1);
    width: 100%;
}

.data-row:last-child {
    border-bottom: 1px solid #ddd;
}

.available {
    height: 32px;
    background: hsla(203, 87%, 85%, .4);
}

.lunch {
    height: 32px;
    background: hsla(203, 87%, 85%, .4);
}

.events .event {
    position: relative;
    font-size: 15px;
    line-height: 15px;
}

.events .event:hover {
    overflow: visible;
    cursor: pointer;
}

.availability .info, .events .event .info {
    position: absolute;
    font-size: 10px;
}

.event .handle {
    position: absolute;
    top: 50%;
    margin-left: -22px;
    margin-top: -22px;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 100%;
    border: none;
    background: url(img/handle.png) center center no-repeat;
}

.event .handle:hover {
    background-color: hsla(212, 100%, 75%, .5);
}

.event .end-handle {
    left: 100%;
}

.events .planned {
    float: left;
    height: 22px;
    margin-top: 3px;
    padding: 2px 5px;
    height: 20px;
    margin-top: 5px;
    border-radius: 2px;
    color: hsl(121, 32%, 40%);
    font-weight: bold;
    border: 1px solid hsl(103, 31%, 65%);
    background: hsl(118, 60%, 87%);
}

.events .planned:active, .events .planned:hover {
    border: 1px solid hsl(103, 31%, 65%);
    background: hsl(118, 70%, 77%);
}

.events .actual {
    float: left;
    width: 18px;
    height: 20px;
    padding: 4px;
    margin-top: 5px;
}

.events .actual {
    border: 4px transparent;
    border-style: dotted;
    background: #5ac000;
    /* The yellow background will not go behind the border */
    background-clip: padding-box;
}

.modal {
}

.popover .arrow {
}

.popover-inner {
    width: 478px;
}

.popover-content {
    padding: 0;
}

.popover form,
.popover .form-actions {
    margin: 0;
}

.popover .control-group {
    padding-right: 18px;
    padding-left: 18px;
}

.popover .control-group:first-child {
    padding-top: 18px;
}

.popover .form-actions {
    border-radius: 0 0 4px 4px;
    text-align: right;
}

.alert {
    padding: 18px;
}

.alert-content {
    width: 100%;
    height: 100%;
}

.alert-content td {
    vertical-align: middle;
    text-align: center;
}

.alert-modal .alert {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 150px;
    margin-left: -100px;
    margin-top: -75px;
    padding: 0;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, .3);
    z-index: 9999;
}

.dim {
    background: rgba(0, 0, 0, .3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}

.alert-modal .alert-content td {
    padding: 18px;
}

/*.fixable {*/
    /*background: #ccc;*/
    /*display: block;*/
    /*position: relative;*/
/*}*/

/*.fixed {*/
    /*top: 0;*/
    /*left: 0;*/
    /*position: static;*/
/*}*/

/*.calendarDay {*/
    /*padding-top: 101px;*/
/*}*/